package datas
{
	import flash.display.InteractiveObject;
	import flash.display.LoaderInfo;

	public class MessageSWF
	{
		public static var _messageSWF:MessageSWF;
		public var element:LoaderInfo;
		public function MessageSWF(key:Key)
		{
		}
		
		public static function getInstace():MessageSWF{
			if(_messageSWF == null)_messageSWF = new MessageSWF(new Key());
			return _messageSWF;
		}
		public static function getMovieClip(swf:LoaderInfo,mcName:String):InteractiveObject
		{
			var movieElement:Class = swf.applicationDomain.getDefinition(mcName) as Class;
			var mc:InteractiveObject = new movieElement() as InteractiveObject;
			return mc;
		}
	}
}
class Key{};